import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutterappmydemo/basis/firstpage.dart';
import 'package:flutterappmydemo/basis/secondpage.dart';


class RoutesDemo extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      //home: RoutesDemoPage(),
      routes: {
        '/first': (BuildContext content) => FirstPage(),
        '/second': (BuildContext content) => SecondPage(),
      },
      initialRoute: '/first', //初始化路由页面为  /first 页面
    );
  }
}
